Skip to main content
POST
/
apiKey
/
beta
/
test-targets
/
{testTargetId}
/
push
Pushes all test cases with the specified schema to the test target. There is also a "opposite" endpoint to pull the files back to the local machine.
curl --request POST \
  --url https://app.octomind.dev/api/apiKey/beta/test-targets/{testTargetId}/push \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "testCases": [
    {
      "version": "1",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "tagNames": [
        "<string>"
      ],
      "runStatus": "OFF",
      "elements": [
        {
          "selectors": [
            {
              "selectorType": "FRAME",
              "selector": "<string>",
              "options": {
                "name": "<string>",
                "exact": true,
                "checked": true,
                "disabled": true,
                "expanded": true,
                "includeHidden": true,
                "level": 123,
                "pressed": true,
                "selected": true,
                "hasText": "<string>",
                "hasNotText": "<string>"
              }
            }
          ],
          "interaction": {
            "action": "CLICK",
            "calledWith": {
              "button": "right",
              "double": true,
              "force": true
            }
          },
          "assertion": {
            "expectation": "VISIBLE",
            "calledWith": "<unknown>"
          },
          "ignoreFailure": true
        }
      ],
      "description": "<string>",
      "prompt": "<string>",
      "type": "LOGIN",
      "dependencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "teardownId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "entryPointUrlPath": "<string>",
      "folderName": "<string>",
      "externalId": "<string>",
      "discovery": {
        "status": "CREATED",
        "traceUrl": "<string>",
        "abortCause": "<string>",
        "message": "<string>"
      }
    }
  ]
}
'
{
  "success": true
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string<uuid>
required

The ID of the test target

Body

application/json

schema for import and export of test cases

testCases
object[]
required

Response

Test target pushed successfully

success
boolean